const reducer = (state = {
    cartlist: []
  }, action) => {
    let { type, data } = action;
  
    switch (type) {
      case 'CHANGE_CART_CART_LIST':
        console.log(data)
        return Object.assign({}, state, { cartlist: [...data] });
      default:
        return state;
    }
  }
  
  export default reducer;